<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()
const { routes } = router.options
console.log(routes)

</script>

<template>
  <ul>
    <li v-for="route of routes">
      <router-link :to="route.path">{{ route.name }}</router-link>
    </li>
  </ul>
  <router-view></router-view>
</template>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  margin-top: 60px;
}

ul {
  list-style: none;
  text-align: left;
}

a {
  color: blue;
  text-decoration: none;
  &:visited {
    color: blue;
  }
  &:hover {
    color: #19b1f8;
  }
  &:active {
    color: #3005ce;
  }
}
</style>
